import request from '@/utils/request'
import { Form } from 'element-ui';

//查询片块入库备案信息
export function queryLand(data) {
    return request({
      url: '/pc/land/storing_record/query_land_by_project_id',
      method: 'POST',
      data
    })
}
//保存片块入库备案信息
export function editLand(data) {
    return request({
      url: '/pc/land/storing_record/save_land_storing_record',
      method: 'POST',
      data
    })
}

//查询项目基本信息和建设信息
export function queryBasicAndBuildInfo(data) {
    return request({
      url: '/pc/project/storing_record/query_project_and_constructing_info',
      method: 'POST',
      formData: data
    })
}
//保存项目入库备案信息
export function saveInfo(data) {
    return request({
      url: '/pc/project/storing_record/save',
      method: 'POST',
      data
    })
}
//查询资金来源
export function queryFundSource(data) {
    return request({
      url: '/pc/project/storing_record/query_fund_source',
      method: 'POST',
    })
}

//备案申报区县审查意见----查询项目基本信息和建设信息
export function selectQuInfo(data) {
    return request({
      url: '/pc/project/storing_record_first_audit_opinion/query_project_and_constructing_info',
      method: 'POST',
      formData: data
    })
}
//备案申报区县审查意见----保存项目入库备案信息区县意见(区县局)
export function saveDistrictBureauOpinion(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/save_district_bureau_opinion',
    method: 'POST',
    data
  })
}
//备案申报区县审查意见----保存项目入库备案信息区县意见(区县中心)
export function saveDistrictCenterOpinion(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/save_district_center_opinion',
    method: 'POST',
    data
  })
}
//查询项目入库备案信息区县意见(区县中心)
export function getTable(data) {
  return request({
    url: '/pc/project/storing_record_second_audit_opinion/query_filing_data',
    method: 'POST',
    formData: data
  })
}

//查询片块入库备案信息
export function selectLandIdInfo(data) {
  return request({
    url: '/pc/land/storing_record/query_land_storing_record',
    method: 'POST',
    formData: data
  })
}

//查询附件资料
export function queryAttachment(data) {
  return request({
    url: '/pc/project/storing_record/query_enclosure',
    method: 'POST',
    formData: data
  })
}
//查询项目入库备案信息区县意见(区县中心)
// export function getTable(data) {
//   return request({
//     url: '/pc/project/storing_record_second_audit_opinion/query_filing_data',
//     method: 'POST',
//     formData: data
//   })
// }
//查询归档资料(入库备案申请表)
export function queryFilingData(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/query_filing_data',
    method: 'POST',
    formData: data
  })
}

//下载
export function download(data) {
  return request({
    url: '/pc/file/download',
    method: 'POST',
    formData: data
  })
}

//上传入库备案申请表
export function uploadProjectStoringRecordTable(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/upload_project_storing_record_table',
    method: 'POST',
    formData: data
  })
}
//上传入库备案申请表
export function getQuOpinion(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/get_audit_opinion',
    method: 'POST',
    formData: data
  })
}


//查询片块入库备案信息
export function queryLandByProjectId(data) {
  return request({
    url: '/pc/land/storing_record/query_land_by_project_id',
    method: 'POST',
    data
  })
}
//查询项目基本信息和建设信息
export function queryStoringRecordFile(data) {
  return request({
    url: '/pc/project/storing_record/query_storing_record_file',
    method: 'POST',
    formData: data
  })
}

//查询人库核查备案申请表信息
export function queryProjectStoringRecordTable(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/query_project_storing_record_table',
    method: 'POST',
    formData: data
  })
}

//编辑人库核查备案申请表信息
export function storingApplicationEdit(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/storing_application_edit',
    method: 'POST',
    data
  })
}

//提交项目入库备案信息区县意见(区县中心)
export function districtCenterOpinionCommit(data) {
  return request({
    url: '/pc/project/storing_record_first_audit_opinion/district_center_opinion_commit',
    method: 'POST',
    formData:data
  })
}

//提交入库备案录入
export function storingRecordResultCommit(data) {
  return request({
    url: '/pc/project/storing_record/storing_record_result_commit',
    method: 'POST',
    data
  })
}
